package com.cf.compent.rank.impl;

import com.cf.compent.rank.UserRank;

/**
 * game-server-DefaultUserRank
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/10 下午 03:56
 */
public class DefaultUserRank implements UserRank {

    private Integer index;

    private Double score;

    private String name;

    private String head;

    private String userId;

    public DefaultUserRank(Integer index, Double score, String name, String head, String userId) {
        this.index = index;
        this.score = score;
        this.name = name;
        this.head = head;
        this.userId = userId;
    }

    @Override
    public Integer getIndex() {
        return index;
    }

    @Override
    public Double getScore() {
        return score;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getHead() {
        return head;
    }

    @Override
    public String getUserId() {
        return userId;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
